import requests
from bs4 import BeautifulSoup
def get_info(url):
    result=requests.get(url)
    result.encoding=result.apparent_encoding
    soup=BeautifulSoup(result.text,'html.parser')
    news=soup.select('#yb_h > div.lby > div.neirongye > ul > li> a')
    times=soup.select('#yb_h > div.lby > div.neirongye > ul > li> span')
    for new,time in zip(news,times):
        print(time.text,new.text)
 
for page in range(1,6):
    url="http://www.techlabplt.com/sspu/list%d.html" %(page)
    get_info(url)
